#include"mythreadPro.hpp"
#include<memory>
using namespace std;
void* run(void *args)
{
    while(1)
    {
        cout<<"我是新线程，我在运行"<<(const char*)args<<endl;
        sleep(1);
    }
}
int main()
{
    unique_ptr<Thread> thread1(new Thread(run,(void*)"logReadThread",1));
    unique_ptr<Thread> thread2(new Thread(run,(void*)"ReadThread",2));
    thread1->join();
    thread2->join();
}